<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page import="util.RoleUtil" %>
<%
    boolean isLoggedIn = RoleUtil.loggedIn(session);
%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<div id="header">

    <div id="top">
        <ul class="nav nav-pills pull-right">
            <li>
                <%if (isLoggedIn) {
                %><a href="<s:url action="Logout" />">
                    <%} else {
                    %><a href="<s:url action="LoginForm" />"><%
                               }%>

                        <i class="icon-user"></i><%= (isLoggedIn) ? "Logout" : "Login"%></a>
            </li>
        </ul>
        <h3 style="color:#1B1B1B">EZ Admin Console</h3>
    </div>

    <!-- A toolbar for module -->
    <div id="toolbar" class="navbar navbar-inverse">
        <div class="navbar-inner">
            <div class="container">
                <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li class="active">
                            <a href="<s:url action="Welcome"/>">Home</a>
                        </li>
                        <li class="">
                            <a href='<s:url action="Conference" />'>Conference</a>
                        </li>
                        <li class="">
                            <a href='<s:url action="Location" />/index'>Location</a>
                        </li>
                        <li class="">
                            <a href='<s:url action="AdminSubmission" />/index'>Submission</a>
                        </li>
                        <li class="">
                            <a href='<s:url action="AdminUser" />/index'>User Account</a>
                        </li>
                        <li class="">
                            <a href="">Payment</a>
                        </li>

                    </ul>
                </div>
            </div>
        </div>
    </div>

</div>